﻿using System.Web;
using Microsoft.Practices.Unity;

namespace RoRoWo.Blog.Common.IoCResolver.Unity
{
    public class WebUnityContainerStorage : IUnityContainerStorage {
        public IUnityContainer Get() {
            return (IUnityContainer)HttpContext.Current.Application["container"];
        }

        public void Set(IUnityContainer container) {
            HttpContext.Current.Application["container"] = container;
        }
    }
}
